#ifndef REGIONVIEW_H
#define REGIONVIEW_H

#include <views/abstractView.h>
#include <view3dinteractorstyle.h>
#include <vtkRenderer.h>
#include <QAction>
#include <QMenu>
#include <QToolTip>

namespace Ui {
    class RegionView;
}

class RegionView : public AbstractView {
    Q_OBJECT

public:

    RegionView(QWidget *parent = 0);
    ~RegionView();
	void setInteractorStyle(View3DInteractorStyle *st);
	void setNetwork(FunctionalNetwork *net);
	inline void setShowContext(bool show) { alwaysShowContext = show; updateView(); }

protected:
	void updateView();

protected slots:
	virtual void on_matrixChanged();
	void on_objectInfoRequested(const QPoint&,int,int);
	void on_selectionChanged(const QVector<int>&, AbstractView::SelectAction action);

private:
	bool alwaysShowContext;
	vtkRenderer *renderer;
    Ui::RegionView *ui;
};

#endif // REGIONVIEW_H
